﻿{% extends "forum/base.html" %}
{% load customfilters %}

{% block title %}
gaeBBS 论坛
{% endblock %}

{% block content %}

<table class="tablebg" cellspacing="1" width="100%">
    <tr>
	<td class="cat" colspan="5" align="right">&nbsp;</td>
    </tr>
    <tr>
	<th colspan="2">&nbsp;论坛&nbsp;</th>
	<th width="50">&nbsp;主题&nbsp;</th>
	<th width="50">&nbsp;文章&nbsp;</th>
	<th>&nbsp;最新发表&nbsp;</th>
    </tr>
    <!--
    <tr>
	<td class="cat" colspan="2"><h4><a href="./viewforum.php?f=16">Operating System Development</a></h4></td>
	<td class="catdiv" colspan="3">&nbsp;</td>
    </tr>
    -->
    {% for forum in forums %}
    <tr>
	<td class="row1" width="50" align="center"><img src="/site_media/styles/pandaxiaoxi/imageset/forum_read.gif" width="46" height="25" alt="No new posts" title="No new posts" /></td>
	<td class="row1" width="100%">
	    <a class="forumlink" href="{{forum.get_absolute_url}}">{{ forum.name }}</a>

	    <p class="forumdesc">{{ forum.description }}</p>
	    <!--<p class="forumdesc"><strong>Moderators:</strong> <a href="./memberlist.php?mode=viewprofile&amp;u=356">Brendan</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=155">carbonBased</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=2600">os64dev</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=1902">Candy</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=67">JAAman</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=1950">AJ</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=1906">Combuster</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=2">chase</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=117">kmcguire</a>, <a href="./memberlist.php?mode=viewprofile&amp;u=3016">mystran</a></p>-->

	</td>
	<td class="row2" align="center"><p class="topicdetails">{{ forum.topics }}</p></td>
	<td class="row2" align="center"><p class="topicdetails">{{ forum.posts }}</p></td>
	<td class="row2" align="center" nowrap="nowrap">
	    <p class="topicdetails">{{ forum.last_datetime|date:"Y-m-d H:i" }}</p>
	    <p class="topicdetails">{% if forum.last_authorid %}<a href="/forum/member/{{ forum.last_authorid }}/">{{ forum.last_author }}</a>{% endif %}{% if forum.last_postid %}<a href="/forum/post/{{forum.last_postid}}/#p{{forum.last_postid}}"><img src="/site_media/styles/pandaxiaoxi/imageset/icon_topic_latest.gif" width="18" height="9" alt="View the latest post" title="View the latest post" /></a>{% endif %}
            </p>
	</td>
    </tr>
    {% endfor %}
    
</table>
<!--<span class="gensmall"><a href="./ucp.php?mode=delete_cookies">Delete all board cookies</a> | <a href="./memberlist.php?mode=leaders">The team</a></span>--><br />

<br clear="all" />


<table class="tablebg" width="100%" cellspacing="1">
    <tr>
	<td class="cat" colspan="2"><h4>当前在线状态</h4></td>
    </tr>
    <tr>
	<td class="row1" align="center" valign="middle"><img src="/site_media/styles/pandaxiaoxi/theme/images/whosonline.gif" alt="Who is online" /></td>
	<td class="row1" width="100%"><span class="genmed">目前共有 <strong>11</strong> 人在线，其中注册用户 <strong>11</strong> 人<br /></td>
    </tr>
</table>

<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
    <tr>
	<td class="cat" colspan="2"><h4>统计</h4></td>
    </tr>
    <tr>
	<td class="row1"><img src="/site_media/styles/pandaxiaoxi/theme/images/whosonline.gif" alt="Statistics" /></td>
	<td class="row1" width="100%" valign="middle"><p class="genmed">总文章 <strong>{{total_posts}}</strong> | 总主题 <strong>{{total_topics}}</strong> | 总成员 <strong>{{total_users}}</strong> | 我们的新朋友 <strong><a href="/forum/member/{{newest_user.id}}/">{{newest_user.username}}</a></strong></p></td>
    </tr>
</table>
<br clear="all" />
<!--
<form method="post" action="./ucp.php?mode=login">
<table class="tablebg" width="100%" cellspacing="1">
    <tr>
	<td class="cat"><h4><a href="./ucp.php?mode=login">登陆</a></h4></td>
    </tr>
    <tr>
	<td class="row1" align="center"><span class="genmed">用户名:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">Password:</span> <input class="post" type="password" name="password" size="10" />&nbsp;  <span class="gensmall">Log me on automatically each visit</span> <input type="checkbox" class="radio" name="autologin" />&nbsp; <input type="submit" class="btnmain" name="login" value="Login" /></td>
    </tr>
</table>
</form>

<br clear="all" />
-->

{% endblock %}